package com.example.smart.room.bean;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import com.example.smart.room.constants.SqlConstant;

@Entity(tableName = SqlConstant.RESERVATION)
public class ReservationBean {

    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id")
    private Long id;

    @ColumnInfo
    private String date;

    @ColumnInfo
    private String time;

    public ReservationBean(Long id, String date, String time) {
        this.id = id;
        this.date = date;
        this.time = time;
    }

    @Ignore
    public ReservationBean(String date, String time) {
        this.date = date;
        this.time = time;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "ReservationBean{" +
                "id=" + id +
                ", date='" + date + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}